<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="80px">发布状态</td>
		<td class="queryContent">
		    <select id="queryPublish" name="queryPublish" class="easyui-combobox" 
		    panelHeight="auto" editable="false" style="width: 120px">
	    		<option value="" selected>[不限]</option>
				<option value="0">未发布</option>
				<option value="1">已发布</option>
			</select> 
		</td>
		<td class="queryTitle" width="80px">分类ID</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryStId" />
		</td>
		<td class="queryTitle" width="68px">标题名称</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryTypeTitle" />
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="tmplType"></table>

<div id="orderDlg" class="easyui-window" title="" closed="true" style="width:428px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="orderForm"  method="POST">
			<s:hidden name="orderStId" id="orderStId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="orderTable">
				<tr>	
					<td class="queryTitle" width="80px">显示顺序</td>
					<td class="queryContent">
						<s:textfield id="order" name="order" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="orderBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdOrder()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdOrder()">取消</a>
    </div>
</div>

<div id="editDlg" class="easyui-window" title="" closed="true" style="width:500px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px">
		<form id="editForm"  method="POST">
			<s:hidden name="editStId" id="editStId"/>
			<table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="editTable">
				<tr>
					<td class="queryTitle" width="80px">分类名称</td>
					<td class="queryContent">
						<input class="inputText" type="text" style="width:300px" id="editTmplTitle" />
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="80px">版本号</td>
					<td class="queryContent">
						<input class="inputText" type="text" style="width:300px" id="editTmplVer" />
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="80px">分类描述</td>
					<td class="queryContent">
						<textarea id="editTmplDesc" name="editTmplDesc" rows="5" cols="55" 
						class="inputText easyui-validatebox" style="width:100%;resize:none;" 
						data-options="required:true,validType:['maxLength[180]']"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="editBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doEdit()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelEdit()">取消</a>
    </div>
</div>

<div id="tDesignDlg" class="easyui-window" closed="true" style="width:1080px;height:500px;text-align:center; background: #fff;">
		<form id="tDesignForm"  method="POST" style="width:1020px;height:400px;padding-left:10px;padding-right:10px;">
				<s:hidden id="st_id"></s:hidden>
				<s:hidden id="stType"></s:hidden>
				<table class="queryTable" style="margin-top: 2px;">
					 <tr>
						<td class="queryTitle" width="68px"><span style="color:red;">编组ID:</span></td>
						<td class="queryContent" width="68px">
							<span id="tsId" style="width:80px;color: blue; font-size:14px;" align="center"></span>
						</td>
						<td class="queryTitle" width="68px"><span style="color:red;">编组标题:</span></td>
						<td class="queryContent" width="300px">
							<span id="stTitle" style="width:300px;color: blue;font-size:14px;" align="center"></span>
						</td>
						<td class="queryTitle" width="80px"><span style="color:red;font-size:14px;">分类版本号:</span></td>
						<td class="queryContent" width="68px">
							<span id="stVer" style="width:300px;color: blue;" align="center"></span>
						</td>
					</tr>
				</table>
				<table id="tmplTypeRGrid"></table>
		</form>
</div>

<!-- 分类下的模板组列表  -->
<div id="tmplSetDlg" class="easyui-window" closed="true" style="width:1150px;height:530px;text-align:center; background: #fff;">
	 <div style="padding-left:10px;padding-right:10px;">
	 <form id="sDesignForm"  method="POST">
		<table class="queryTable" >
			<tr>
				<td class="queryTitle" width="110px" align="center">
					<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addToTmplSr()">添加到分组</a>
				</td>
				<td class="queryTitle" width="68px">发布状态</td>
				<td class="queryContent">
				    <select id="queryTSPub" name="queryTSPub" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 100px" >
					</select> 
				</td>
				<td class="queryTitle" width="80px">编组用途</td>
				<td class="queryContent">
					<select id="queryUse" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 90px">
						<option value="-1">不限</option>
						<option value="0">普通分类</option>
						<option value="10">专题分类</option>
					</select> 
				</td>
				<td class="queryTitle" width="68px">模板组名称</td>
				<td class="queryContent">
					<input type="text" id="queryTSName" style="width:120px;"/>
				</td>
				<td class="queryTitle" width="68px">模板组ID</td>
				<td class="queryContent">
					<input type="text" id="queryTSId" style="width:100px;"/>
				</td>
				<td class="queryBtnTd">
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery3(1)">查询</a>
				</td>
			</tr>
		</table>
		<div style="width: 1100px;">
			<table id="tmplSetGrid"></table>
		</div>
		</form>
	</div>
</div>

<script type="text/javascript" src="${ctx}/js/yjx/showTypeMgr.js"></script>
</body>
</html>
